﻿using System.ComponentModel.DataAnnotations;

namespace AnQinManagermentBackendAPI.Model.DTO.Project
{
    /// <summary>
    /// 项目表模型 - 更新
    /// </summary>
    public class ProjectUpdateDTO
    {
        /// <summary>
        /// 项目Id
        /// </summary>
        [Required(ErrorMessage = "项目Id不能为空")]
        public string Id { get; set; }

        /// <summary>
        /// 项目编码
        /// </summary>
        [Required(ErrorMessage = "项目编码Code不能为空")]
        public string Code { get; set; }

        /// <summary>
        /// 项目名称
        /// </summary>
        [Required(ErrorMessage = "项目名称Name不能为空")]
        public string Name { get; set; }

        /// <summary>
        /// 员工Id
        /// </summary>
        [Required(ErrorMessage = "员工StaffId不能为空")]
        public string StaffId { get; set; }

        /// <summary>
        /// 客户Id
        /// </summary>
        [Required(ErrorMessage = "客户CustomerId不能为空")]
        public string CustomerId { get; set; }

        /// <summary>
        /// 附件
        /// </summary>
        public string? File { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string? Remark { get; set; }
    }
}
